package com.yunji.order.dao;

import com.yunji.common.base.IBaseDao;
import com.yunji.order.bo.GetOrderTradeBO;
import com.yunji.order.domain.TradeDO;
import com.yunji.order.dto.TradeParam;

import java.util.List;

/**
 * @author : peter-zhu
 * @date : 2024/12/16 14:59
 * @description : TODO
 **/
public interface ITradeDao extends IBaseDao<TradeDO> {
    TradeDO getTrade(GetOrderTradeBO bo);

    boolean existsTrade(GetOrderTradeBO bo);

    TradeDO getByTradeCode(String tradeCode);

    List<TradeDO> listByTranNo(String transactionNo);

    List<TradeDO> tradeList(TradeParam param);
}
